package senior.MapTest.exer3;

/**
 * @author shkstart
 * @creat 2022-04-13:37
 */
public class Employee {
    private String name;//姓名
    private int salary;//工资


    public Employee() {
    }



    public Employee(String name, int salary) {
        this.name = name;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "姓名：" + name +
                ", 工资：" + salary + "元";
    }




}
